3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
The kQ3XMethodTypeObjectClassVersion method lets you publish the version number of a custom class.
The kQ3XMethodTypeObjectClassVersion method returns the version of a class as a TQ3XObjectClassVersion type. This information may be used to determine when to invoke the TQ3XObjectClassReplaceMethod method.
#define kQ3XMethodTypeObjectClassVersion Q3_METHOD_TYPE('v','r','s','n')
typedef unsigned long TQ3XObjectClassVersion;
QuickDraw 3D includes a utility macro that lets you provide the version number of a class. If there are two identical implementations of a class, the system will only load the latter, as determined by the version number.
#define Q3_OBJECT_CLASS_VERSION(major, minor)
(unsigned long) (((major) << 16) | (minor))
If you do not provide a version number the version is automatically set to 0.0.
Previous | QD3D Book | Overview | Chapter Contents | Next |